# Define a new time format to save to mysql db
class Time
  def to_db_time
    v_time_format = "%Y-%m-%d %H:%M:%S"
    return self.strftime(v_time_format)
  end
end
